<?php
/**
 *   Kaltura Browser - components/com_kaltura/views/details/view.raw.php
 *   Author: Juan Dapena Paz (juan@bittingbits.com)
 *   Copyright (C) 2011 Bitting Bits S.L.
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');
jimport('joomla.utilities.date');
class KalturaViewDetails extends JView
{
    function display($tpl=null) {
        $document = JFactory::getDocument();
        
        $document->addStyleSheet(JURI::base() . 'components/com_kaltura/assets/css/kaltura_details.css');
        
        $kaltura = $this->getModel();
 		       
        $item = $kaltura->getItem();
        $meta = $kaltura->getInstanceMetadata();
        $flavors = $kaltura->getFlavors();
        $fields = $kaltura->getFieldsList();
		
        $this->assignRef('item', $item);
        $this->assignRef('meta', $meta);
        $this->assignRef('flavors', $flavors);
        $this->assignRef('fields', $fields);
        
        $this->assignRef('kaltura', $kaltura);
    
        parent::display($tpl);
    }
}
?>
